<!DOCTYPE html>
<html>
<head>
    <title></title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <Row :gutter="16">
            <div class="search-group">
                <i-col span="4">
                    <i-input v-model="q.name" @on-enter="query" placeholder="名称"/>
                </i-col>
                <i-button @click="query">查询</i-button>
                <i-button @click="reloadSearch">重置</i-button>
            </div>
            <div class="buttons-group">
                #if($shiro.hasPermission("sourcetable:save"))
                <i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</i-button>
                #end
                #if($shiro.hasPermission("sourcetable:update"))
                <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</i-button>
                #end
                #if($shiro.hasPermission("sourcetable:delete"))
                <i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>
                #end
            </div>
        </Row>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
        <i-form ref="formValidate" :model="sourceTable" :rules="ruleValidate" :label-width="80">
            <Form-item label="表名" prop="tableId">
                <i-input v-model="sourceTable.tableId" placeholder="表名"/>
            </Form-item>
            <Form-item label="新老标志0-老数据1-新数据" prop="newOldFlag">
                <i-input v-model="sourceTable.newOldFlag" placeholder="新老标志0-老数据1-新数据"/>
            </Form-item>
            <Form-item label="数据日期YYYYMMDD" prop="dataDt">
                <i-input v-model="sourceTable.dataDt" placeholder="数据日期YYYYMMDD"/>
            </Form-item>
            <Form-item label="列顺序号" prop="colSeqNo">
                <i-input v-model="sourceTable.colSeqNo" placeholder="列顺序号"/>
            </Form-item>
            <Form-item label="行顺序号" prop="rowSeqNo">
                <i-input v-model="sourceTable.rowSeqNo" placeholder="行顺序号"/>
            </Form-item>
            <Form-item label="字段值" prop="reportData">
                <i-input v-model="sourceTable.reportData" placeholder="字段值"/>
            </Form-item>
            <Form-item label="更新时间" prop="updateTime">
                <i-input v-model="sourceTable.updateTime" placeholder="更新时间"/>
            </Form-item>
            <Form-item label="状态0-正常1-删除" prop="state">
                <i-input v-model="sourceTable.state" placeholder="状态0-正常1-删除"/>
            </Form-item>
            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
                <i-button type="warning" @click="reload" style="margin-left: 8px"/>
                返回</i-button>
                <i-button type="ghost" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>
            </Form-item>
        </i-form>
    </Card>
</div>

<script src="${rc.contextPath}/js/shop/sourcetable.js?_${date.systemTime}"></script>
</body>
</html>